<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/v2/console/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	    <meta content="width=device-width, minimum-scale=1,initial-scale=1, maximum-scale=1, user-scalable=1" id="viewport" name="viewport" />
	    <meta content="yes" name="apple-mobile-web-app-capable" />
	    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
		<title>${map.title }</title>
	</head>
	<link rel="stylesheet" href="/sftj-offical-site/v2/news/css/style.css" />
	<link rel="stylesheet" href="/sftj-offical-site/v2/news/iconfont/iconfont.css" />
	<body onload="load()">
		<!-- <div class="top">
			<span class="iconfont icon-u-arrow3-left"></span>
			<span>校咖头条</span>
			<span class="iconfont icon-ren"></span>
		</div> -->
		<div id="wrapper">
			<div id="scroller">
				<div class="ctt_title">
					<p>${map.title }</p>
					<div class="new_text">
							<span class="iconfont icon-shizhong"></span>
							<span>${map.pubTime }</span>
							<!-- <span>12:30</span> -->
							<span class="iconfont icon-yanjing"></span>
							<span>${map.readCount }</span>
					</div>
				</div>
				<!-- <div class="ctt_pic">
					<img src="img/img2.png" />	
				</div> -->
				<ul class="new_content">
					<li>${map.content }</li>
				</ul>
			   <!--  <div id="pullUp" class="">  
                 <div class="pullUpLabel">加载更多</div>  
              </div>  --> 
			</div>
		</div>	
	</body>
	<script type="text/javascript" src="/sftj-offical-site/v2/news/js/jquery-1.6.2.min.js" ></script>
	<script type="text/javascript" src="/sftj-offical-site/v2/news/js/iscroll.probe.min.js" ></script>
	<script>
	   /* function load () {  
        var myScroll,  
                    pullUp = $("#pullUp"),  
                    pullUpLabel = $(".pullUpLabel"),  
                    container = $('.new_content'),  
                    loadingStep = 0;//加载状态0默认，1显示加载状态，2执行加载数据，只有当为0时才能再次加载，这是防止过快拉动刷新  
            pullUp.hide();  
            myScroll = new IScroll("#wrapper", {  
                scrollbars: true,  
                mouseWheel: false,  
                interactiveScrollbars: true,  
                shrinkScrollbars: 'scale',  
                fadeScrollbars: true,  
                scrollY:true,  
                probeType: 2,  
                bindToWrapper:true,
                click:true
            });  
            myScroll.on("scroll",function(){ 
                    if(loadingStep == 0  && !pullUp.attr("class").match('refresh')){  
                       if(this.y < (this.maxScrollY - 14)){//上拉加载更多
                        pullUp.addClass("refresh").show();  
                        pullUpLabel.text("正在载入");  
                        loadingStep = 1;  
                        pullUpAction();  
                        console.log("1")
                    }  
                }  
            }); 
        function pullUpAction(){  
            setTimeout(function(){  
                var li, i;  
                for (i = 0,li = ""; i < 5; i++) {  
                    li += '<li>内容这是内容这是内容这是内容这是内容这是内容这是内容这是内容这是内容这是内容这是内容这是内容这是内容这是内容这是内容这是内容这是内容这是内容这是内容这是内容</li>'
                }  
                container.append(li);  
                pullUp.attr('class','').hide();  
                myScroll.refresh();  
                loadingStep = 0;  
            },500);  
        }  
  
        document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);  
        }  
	    */
	    var id = ${map.articleId };
	    $(function(){
	    	$.ajax({
          		url:"${path}/web/updateReadNum.html",
          		type:"post",
          		data : {id:id},
          		success:function(data){
          			
          		}
          	})
	    })
	</script>
</html>












